package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author du
 * date 2018/7/28 下午9:59
 */
public class StartResult implements Parcelable{
    /*
     * integral : 420
     * level : 小蝌蚪-勤学苦练
     */
    /**
     * 星星数
     */
    private String integral;
    /**
     * 会员所在级别
     */
    private String level;

    public String getIntegral() { return integral;}

    public void setIntegral(String integral) { this.integral = integral;}

    public String getLevel() { return level;}

    public void setLevel(String level) { this.level = level;}

    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.integral);
        dest.writeString(this.level);
    }

    public StartResult() {}

    protected StartResult(Parcel in) {
        this.integral = in.readString();
        this.level = in.readString();
    }

    public static final Creator<StartResult> CREATOR = new Creator<StartResult>() {
        @Override
        public StartResult createFromParcel(Parcel source) {return new StartResult(source);}

        @Override
        public StartResult[] newArray(int size) {return new StartResult[size];}
    };
}
